package com.chapter13.MyCollection.MyMap.MyTreeMap;

import java.util.*;

public class UseTreeMap {
    public static void main(String[] args) {
        TreeMap<Integer, String> tm = new TreeMap<Integer, String>();
        tm.put(1, "one");
        tm.put(2, "two");
        tm.put(3, "three");
        System.out.println(tm.firstEntry());
        System.out.println(tm.subMap(2,3));
    }
}
